
<form name="form" method="post" action="{[$root]}{[$deleteLink]}{[$p1]}{[$p3]}">
<table>
	<tr align="center">
		<th width="40"><input type="checkbox" class="check" name="chkall" value="on" onclick="chkbox(this.form)"></th>
		<th width="40">序号</th>
		<th>收入</th>
		<th>流水号</th>
		<th>事由</th>
		<th>类型</th>		
		<th width="40"></th>
		<th>到帐日期</th>
		<th>币种</th>		
		<th>到帐金额</th>
		
		<th>成本</th>
		<th>利润</th>
		<th>提成</th>
		
		<th>方法</th>
		<th>比例</th>
				
		<th>录入员</th>
		<th>状态</th>
		<th>{[$orderby]}</th>
	</tr>
	{[foreach name=outer key=key item=item from=$result]} 
	{[assign var="no" value="`$key+$pager->from+1`"]} 
	{[assign var="t1" value="`$t1+$item.income`"]}	
	{[assign var="t2" value="`$t2+$item.cost`"]}	
	{[assign var="t3" value="`$t3+$item.profit`"]}
	{[assign var="t4" value="`$t4+$item.amount`"]}	
	<tr align="center" onMouseOver="this.style.backgroundColor='#D2E4FC'" onMouseOut="this.style.backgroundColor=''">
		<td><input type="checkbox" class="check" name="c_{[$item.id]}" value="{[$item.id]}"></td>
		<td>{[$no]}</td>
		<td><a href="javascript:void(0)"
			onclick="Common.dialog_view_('finance.php?do=InItem.view&id={[$item.in_item]}', '收入信息', '650x420')">{[$item.in_item]}</a></td>
		<td><a href="javascript:void(0)"
			onclick="Common.dialog_view_('{[$root]}{[$viewLink]}&id={[$item.id]}', '查看信息', '700x420')">{[$item.id]}</a></td>
		<td>{[$item.name|truncate:30:"...":true]}</td>
		<td>{[$item.type_t]}</td>
		<td><a href="javascript:void(0)" onclick="CommissionMy.popup(event, '{[$p2]}&p={[$p]}', '{[$item.id]}', {[$item.status]})">[管理]</a></td>		
		<td>{[$item.date]}</td>
		<td>{[$item.currency_t]}</td>		
		<td>{[$item.income|money]}</td>
		<td>{[$item.cost|money]}</td>
		<td>{[$item.profit|money]}</td>
		<td>{[$item.amount|money]}</td>		
				
		<td>{[$item.type2_t]}</td>
		<td>{[$item.percent*100]}%</td>
		
		<td><a href="javascript:void(0)" onclick="emp('{[$item.oper]}')">{[$item.oper_t]}</a></td>
		<td>{[$item.status_t]}</td>
		<td>{[$item.orderby_x]}</td>
	</tr>
	{[/foreach]}
	<tr align="center">
		<td><a href="javascript:void(0)" onclick="CommissionMy.popup_all(event, '{[$p2]}&p={[$p]}')">[管理]</a></td>
		<td colspan="8"></td>
		<td>{[$t1|money]}</td>
		<td>{[$t2|money]}</td>
		<td>{[$t3|money]}</td>
		<td>{[$t4|money]}</td>
		<td colspan="5"></td>
	</tr>
</table>
</form>

{[include file="footer.tpl"]}
